﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020008D1 RID: 2257
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class HeartDialScriptChangeScNotify : IMessage<HeartDialScriptChangeScNotify>, IMessage, IEquatable<HeartDialScriptChangeScNotify>, IDeepCloneable<HeartDialScriptChangeScNotify>, IBufferMessage
	{
		// Token: 0x17001C92 RID: 7314
		// (get) Token: 0x0600653D RID: 25917 RVA: 0x0010FD81 File Offset: 0x0010DF81
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<HeartDialScriptChangeScNotify> Parser
		{
			get
			{
				return HeartDialScriptChangeScNotify._parser;
			}
		}

		// Token: 0x17001C93 RID: 7315
		// (get) Token: 0x0600653E RID: 25918 RVA: 0x0010FD88 File Offset: 0x0010DF88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return HeartDialScriptChangeScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001C94 RID: 7316
		// (get) Token: 0x0600653F RID: 25919 RVA: 0x0010FD9A File Offset: 0x0010DF9A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return HeartDialScriptChangeScNotify.Descriptor;
			}
		}

		// Token: 0x06006540 RID: 25920 RVA: 0x0010FDA1 File Offset: 0x0010DFA1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeartDialScriptChangeScNotify()
		{
		}

		// Token: 0x06006541 RID: 25921 RVA: 0x0010FDCC File Offset: 0x0010DFCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeartDialScriptChangeScNotify(HeartDialScriptChangeScNotify other) : this()
		{
			this.changedDialogueInfoList_ = other.changedDialogueInfoList_.Clone();
			this.changedScriptInfoList_ = other.changedScriptInfoList_.Clone();
			this.eNELMHEDJII_ = other.eNELMHEDJII_.Clone();
			this.unlockStatus_ = other.unlockStatus_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06006542 RID: 25922 RVA: 0x0010FE2F File Offset: 0x0010E02F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeartDialScriptChangeScNotify Clone()
		{
			return new HeartDialScriptChangeScNotify(this);
		}

		// Token: 0x17001C95 RID: 7317
		// (get) Token: 0x06006543 RID: 25923 RVA: 0x0010FE37 File Offset: 0x0010E037
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<HeartDialDialogueInfo> ChangedDialogueInfoList
		{
			get
			{
				return this.changedDialogueInfoList_;
			}
		}

		// Token: 0x17001C96 RID: 7318
		// (get) Token: 0x06006544 RID: 25924 RVA: 0x0010FE3F File Offset: 0x0010E03F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<HeartDialScriptInfo> ChangedScriptInfoList
		{
			get
			{
				return this.changedScriptInfoList_;
			}
		}

		// Token: 0x17001C97 RID: 7319
		// (get) Token: 0x06006545 RID: 25925 RVA: 0x0010FE47 File Offset: 0x0010E047
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<HNGOJHBPFEJ> ENELMHEDJII
		{
			get
			{
				return this.eNELMHEDJII_;
			}
		}

		// Token: 0x17001C98 RID: 7320
		// (get) Token: 0x06006546 RID: 25926 RVA: 0x0010FE4F File Offset: 0x0010E04F
		// (set) Token: 0x06006547 RID: 25927 RVA: 0x0010FE57 File Offset: 0x0010E057
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeartDialUnlockStatus UnlockStatus
		{
			get
			{
				return this.unlockStatus_;
			}
			set
			{
				this.unlockStatus_ = value;
			}
		}

		// Token: 0x06006548 RID: 25928 RVA: 0x0010FE60 File Offset: 0x0010E060
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as HeartDialScriptChangeScNotify);
		}

		// Token: 0x06006549 RID: 25929 RVA: 0x0010FE70 File Offset: 0x0010E070
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(HeartDialScriptChangeScNotify other)
		{
			return other != null && (other == this || (this.changedDialogueInfoList_.Equals(other.changedDialogueInfoList_) && this.changedScriptInfoList_.Equals(other.changedScriptInfoList_) && this.eNELMHEDJII_.Equals(other.eNELMHEDJII_) && this.UnlockStatus == other.UnlockStatus && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600654A RID: 25930 RVA: 0x0010FEE8 File Offset: 0x0010E0E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.changedDialogueInfoList_.GetHashCode();
			num ^= this.changedScriptInfoList_.GetHashCode();
			num ^= this.eNELMHEDJII_.GetHashCode();
			if (this.UnlockStatus != HeartDialUnlockStatus.Lock)
			{
				num ^= this.UnlockStatus.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600654B RID: 25931 RVA: 0x0010FF57 File Offset: 0x0010E157
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600654C RID: 25932 RVA: 0x0010FF5F File Offset: 0x0010E15F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600654D RID: 25933 RVA: 0x0010FF68 File Offset: 0x0010E168
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.UnlockStatus != HeartDialUnlockStatus.Lock)
			{
				output.WriteRawTag(24);
				output.WriteEnum((int)this.UnlockStatus);
			}
			this.eNELMHEDJII_.WriteTo(ref output, HeartDialScriptChangeScNotify._repeated_eNELMHEDJII_codec);
			this.changedDialogueInfoList_.WriteTo(ref output, HeartDialScriptChangeScNotify._repeated_changedDialogueInfoList_codec);
			this.changedScriptInfoList_.WriteTo(ref output, HeartDialScriptChangeScNotify._repeated_changedScriptInfoList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600654E RID: 25934 RVA: 0x0010FFD8 File Offset: 0x0010E1D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.changedDialogueInfoList_.CalculateSize(HeartDialScriptChangeScNotify._repeated_changedDialogueInfoList_codec);
			num += this.changedScriptInfoList_.CalculateSize(HeartDialScriptChangeScNotify._repeated_changedScriptInfoList_codec);
			num += this.eNELMHEDJII_.CalculateSize(HeartDialScriptChangeScNotify._repeated_eNELMHEDJII_codec);
			if (this.UnlockStatus != HeartDialUnlockStatus.Lock)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.UnlockStatus);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600654F RID: 25935 RVA: 0x00110050 File Offset: 0x0010E250
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(HeartDialScriptChangeScNotify other)
		{
			if (other == null)
			{
				return;
			}
			this.changedDialogueInfoList_.Add(other.changedDialogueInfoList_);
			this.changedScriptInfoList_.Add(other.changedScriptInfoList_);
			this.eNELMHEDJII_.Add(other.eNELMHEDJII_);
			if (other.UnlockStatus != HeartDialUnlockStatus.Lock)
			{
				this.UnlockStatus = other.UnlockStatus;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06006550 RID: 25936 RVA: 0x001100BF File Offset: 0x0010E2BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06006551 RID: 25937 RVA: 0x001100C8 File Offset: 0x0010E2C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 74U)
				{
					if (num == 24U)
					{
						this.UnlockStatus = (HeartDialUnlockStatus)input.ReadEnum();
						continue;
					}
					if (num == 74U)
					{
						this.eNELMHEDJII_.AddEntriesFrom(ref input, HeartDialScriptChangeScNotify._repeated_eNELMHEDJII_codec);
						continue;
					}
				}
				else
				{
					if (num == 114U)
					{
						this.changedDialogueInfoList_.AddEntriesFrom(ref input, HeartDialScriptChangeScNotify._repeated_changedDialogueInfoList_codec);
						continue;
					}
					if (num == 122U)
					{
						this.changedScriptInfoList_.AddEntriesFrom(ref input, HeartDialScriptChangeScNotify._repeated_changedScriptInfoList_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040026A8 RID: 9896
		private static readonly MessageParser<HeartDialScriptChangeScNotify> _parser = new MessageParser<HeartDialScriptChangeScNotify>(() => new HeartDialScriptChangeScNotify());

		// Token: 0x040026A9 RID: 9897
		private UnknownFieldSet _unknownFields;

		// Token: 0x040026AA RID: 9898
		public const int ChangedDialogueInfoListFieldNumber = 14;

		// Token: 0x040026AB RID: 9899
		private static readonly FieldCodec<HeartDialDialogueInfo> _repeated_changedDialogueInfoList_codec = FieldCodec.ForMessage<HeartDialDialogueInfo>(114U, HeartDialDialogueInfo.Parser);

		// Token: 0x040026AC RID: 9900
		private readonly RepeatedField<HeartDialDialogueInfo> changedDialogueInfoList_ = new RepeatedField<HeartDialDialogueInfo>();

		// Token: 0x040026AD RID: 9901
		public const int ChangedScriptInfoListFieldNumber = 15;

		// Token: 0x040026AE RID: 9902
		private static readonly FieldCodec<HeartDialScriptInfo> _repeated_changedScriptInfoList_codec = FieldCodec.ForMessage<HeartDialScriptInfo>(122U, HeartDialScriptInfo.Parser);

		// Token: 0x040026AF RID: 9903
		private readonly RepeatedField<HeartDialScriptInfo> changedScriptInfoList_ = new RepeatedField<HeartDialScriptInfo>();

		// Token: 0x040026B0 RID: 9904
		public const int ENELMHEDJIIFieldNumber = 9;

		// Token: 0x040026B1 RID: 9905
		private static readonly FieldCodec<HNGOJHBPFEJ> _repeated_eNELMHEDJII_codec = FieldCodec.ForMessage<HNGOJHBPFEJ>(74U, HNGOJHBPFEJ.Parser);

		// Token: 0x040026B2 RID: 9906
		private readonly RepeatedField<HNGOJHBPFEJ> eNELMHEDJII_ = new RepeatedField<HNGOJHBPFEJ>();

		// Token: 0x040026B3 RID: 9907
		public const int UnlockStatusFieldNumber = 3;

		// Token: 0x040026B4 RID: 9908
		private HeartDialUnlockStatus unlockStatus_;
	}
}
